import { Authority } from '../request'

const { post, get } = Authority
// 批量导入分段
export const importUserExcel = params => post('/user/userLogin/importExcel', params)
// 菜单编辑
export const menuUpdate = params => post('/user/menu/v1/update', params)
// 菜单排序
export const monitorPointSort = params => post('/user/menu/v1/updateWeight', params)
// 菜单新增
export const menuAdd = params => post('/user/menu/v1/add', params)

// 菜单新增
export const menuDelete = params => post('/user/menu/v1/delete', params)

// 获取角色列表
export const roleQuery = params => get('/user/role/v1/queryList', { params })

// 新增角色
export const roleAdd = params => post('/user/role/v1/add', params)

// 编辑角色
export const roleUpdate = params => post('/user/role/v1/update', params)

// 删除角色
export const roleDelete = params => post('/user/role/v1/delete', params)

// 角色关联菜单
export const roleRelMenus = params => post('/user/role/v1/relMenus', params)

// 角色关联菜单查询
export const roleMenuIdList = params => get('/user/role/v1/roleMenuIdList', { params })

// 获取用户列表
export const accountQuery = params => get('/user/userLogin/v1/queryList', { params })


export const accountImport = params => post('/user/userLogin/import', params)
export const orgImport = params => post('/user/userOrganization/import', params)

// 用户新增
export const accountAdd = params => post('/user/userLogin/add', params)

// 用户编辑
export const accountUpdate = params => post('/user/userLogin/v1/update', params)

// 用户查询当前拥有的角色列表
export const accountQueryRoleList = params => get('/user/role/v1/queryList', { params })

// 用户关联角色
export const accountrelRoles = params => post('/user/userLogin/v1/relRoles', params)

// 单位列表
export const reviewQueryList = params => get('/user/userPlatform/v1/queryList', { params })

// 添加平台
export const platformAdd = params => post('/user/userPlatform/v1/add',  params)



// 单位审核
export const reviewCheck = params => post('/user/userPlatform/v1/check', params)

// 用户关联工程
export const relProject = params => post('/user/userLogin/v1/relProject', params)


// 组织架构查询
export const orgQuery = params => get('/user/userOrganization/v1/queryList', { params })

export const orgSelect = params => get('/user/userOrganization/v1/querySelectList', { params })

export const orgAdd = params => post('/user/userOrganization/v1/add',  params )

export const orgUpdate = params => post('/user/userOrganization/v1/update',  params )


export const stopFromOrg = params => post('/user/userLogin/v1/stopByOrgId',  params )

export const startFromOrg = params => post('/user/userLogin/v1/stopByOrgId',  params )

export const relRegion = params => post('/user/userOrganization/v1/relRoadSection', params)
